package com.lengyu.vxminiprogram.entity;

import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lengyu.vxminiprogram.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuyu
 * @since 2024-11-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="WorkOrder对象", description="")
public class WorkOrder extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private String title;

    private String userId;

    @ApiModelProperty(value = "微信openid")
    private String vxOpenId;

    @ApiModelProperty(value = "工单类型")
    private String orderType;

    @ApiModelProperty(value = "设备类型")
    private String deviceType;

    @ApiModelProperty(value = "紧急程度")
    private String priority;

    @ApiModelProperty(value = "截止日期")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date deadlineDate;

    @ApiModelProperty(value = "截止时间")
    @DateTimeFormat(pattern="hh:mm")
    @JsonFormat(pattern = "HH:mm")
    private Date deadlineTime;

    @ApiModelProperty(value = "现场照片")
    private String imgUrlList;

    @ApiModelProperty(value = "参与用户id")
    private String procUserIds;

    @ApiModelProperty(value = "工单说明")
    private String instruction;

    @ApiModelProperty(value = "工单当前状态：新建、处理中、已截止等")
    private String currentStatus;

    private Boolean deleteFlag;


}
